<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title><h:outputText value="#{index.siteName}" /></title>
</h:head>

<h:body>
			<h:form id="loginForm">
				<h:inputText id="userName" value="#{login.userName }" label="UserName" required="true"
					requiredMessage="#{customMessage.requireUsername}">
					<f:validateLength maximum="50" minimum="6"></f:validateLength>
					<f:valueChangeListener binding="#{login.change }"/>
				</h:inputText>
				<h:inputSecret id="password" value="#{login.password }" label="Password" required="true"
					requiredMessage="#{customMessage.requirePassword}">

				</h:inputSecret>
				<h:commandButton id="submit" value="submit"></h:commandButton>
			</h:form>
			<h:message for="userName"></h:message>
			<h:messages
				style="color: red;
                 font-family: 'New Century Schoolbook', serif;
                 font-style: oblique;
                 text-decoration: overline"></h:messages>


</h:body>
</html>